package com.ruoyi.activity.controller.portal;

import com.ruoyi.activity.req.ReviewWorkReq;
import com.ruoyi.activity.service.IEvaluateService;
import com.ruoyi.activity.service.IWorksService;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 评审模块
 */
@RestController
@RequestMapping("/portal/evaluate")
public class PortalEvaluateController {

    @Autowired
    private IEvaluateService evaluateService;
    /**
     * 专家评审，评审参赛的作品
     */
    @PostMapping("/review")
    public R review(@RequestBody ReviewWorkReq reviewWorkReq) {
        int i = evaluateService.review(reviewWorkReq);
        return R.ok(i);
    }
}
